/**
 * 背调记录
 */
import React from 'react';
import { withRouter, router } from 'umi';
import AuthComponent from '@/utils/auth/AuthComponent';

import { Icon } from '../../components';

function BackgroundRecOperate({ candidateId, employId, ...rest }) {
    const handleJumpInvite = React.useCallback(() => {
        history.push({
            pathname: '/office/personnelManagement/recruitment/hire/backgroundRec',
            query: { candidateId, employId }
        });
    }, []);
    return (
        <AuthComponent code="office:recruitment:course:hire:detail:refCheck">
            <Icon
                title="背调记录"
                type="listfunction_viewinterview_icon_default"
                onClick={handleJumpInvite}
                {...rest}
            />
        </AuthComponent>
    );
}
export default withRouter(BackgroundRecOperate);
